package cloudInformation.mapper;

import cloudEntity.dto.user.SmartUserRelaxDetailsUpdateTypeDTO;
import cloudEntity.entity.SmartUserRelaxDetailsEntity;
import cloudEntity.vo.user.SmartUserRelaxDetailsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 智慧校园学生请假明细表(SmartUserRelaxDetails)表数据库访问层
 *
 * @author makejava
 * @since 2025-04-14 08:38:18
 */
@Mapper
public interface SmartUserRelaxDetailsMapper {

    /**
     * 根据 uid 获取 学生请假详情
     * @param uid uid
     * @return 返回 学生请假详情列表
     */
    List<SmartUserRelaxDetailsVO> getUserRelaxDetails(@Param("uid") String uid);

    /**
     * 创建学生请假详情记录
     * @param dto 前端传入的学生请假详情实体类
     * @return 返回 1 或 0
     */
    Integer createUserRelaxDetails(SmartUserRelaxDetailsEntity dto);

    /**
     * 更改学生请假详情记录
     * @param dto 前端传入的学生请假详情 更改 DTO实体类
     * @return 返回 1 或 0
     */
    Integer updateUserRelaxDetails(SmartUserRelaxDetailsUpdateTypeDTO dto);
}

